package com.batchengine.pool;

import com.batchengine.worker.Worker;

/**
 * Created by sunil.incubator@yahoo.com.
 * User: sunil.kalva
 * Date: Jun 23, 2009
 */
public abstract class WorkerFactory {

    protected WorkerFactory() {
    }

    /**
     * Creates a <code>TaskExecutor</code> worker that needs to be
     * added to this pool. Extending classes will implement this
     * abstract method.
     *
     * @return a <code>TaskExecutor</code> object
     */
    protected abstract Worker createWorker(String workerName, long taskId);

}
